Height, Width Properties Example

The following example uses the Height and Width properties to return the height and width of the specified window, in twips. These property settings change after a window is linked or docked because then they refer to the Window object to which the original window is linked or docked.

Debug.Print Application.VBE.Windows(9).Height
Debug.Print Application.VBE.Windows(9).Width